<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	
	<script type="text/javascript">
		//whilex循环
		
		//1.初始化循环变量 2.判断循环条件  3、更新循环变量
		var i = 1;
		
		while(i<=9){
//			console.log(i)
			
			i = i+1;
		}
		
		//练习
		
		//将 1-100之间的所有是3的倍数 输出出来
		var j = 1;
		while (j<=100){
			if(j%3===0){
				console.log(j)
			}
			j++;
		}
	</script>
</html>
